cmake_minimum_required(VERSION 3.5)

project(MAIN CXX)

INCLUDE_DIRECTORIES(./include/Aim)
INCLUDE_DIRECTORIES(./include/Port)
AUX_SOURCE_DIRECTORY(./src/Aim DIR_SRCS1)
AUX_SOURCE_DIRECTORY(./src/Port DIR_SRCS2)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread")
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

ADD_EXECUTABLE(MAIN main.cpp ${DIR_SRCS1} ${DIR_SRCS2})

find_package(OpenCV 4 REQUIRED)
target_include_directories(${PROJECT_NAME}
    PRIVATE
        ${OpenCV_INCLUDE_DIRS}
)

TARGET_LINK_LIBRARIES(MAIN ${OpenCV_LIBS})

